﻿using HZU.ZP.Data.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace HZU.ZP.Data.Interfaces
{
    public interface IApplicantDao
    {
        /// <summary>
        /// 添加学生账号
        /// </summary>
        /// <param name="applicant"></param>
        void Add(Applicant applicant);
        /// <summary>
        /// 根据条件获取学生账号
        /// </summary>
        /// <param name="email"></param>
        /// <returns></returns>
        Applicant Get(string email);
        /// <summary>
        /// 根据条件获取学生账号
        /// </summary>
        /// <param name="email"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Applicant Get(string email, string password);
        List<ApplicantInf> Get(int pageIndex);
        int GetCount();
    }
}
